package com.fhmoralles.senha.dominio;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "vagas")
public class Vagas implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8660222770048569046L;
	
	@Id
	@Column(name = "id", nullable = false, insertable = true, updatable = false)
	private Integer id;
	
	@Column(name = "name", nullable = false, insertable = true, updatable = true, length = 100)
	private String name;
	
	@Column(name = "cx", nullable = false, insertable = true, updatable = false)
	private Integer cx;
	  
	@Column(name = "cy", nullable = false, insertable = true, updatable = false)
	private Integer cy;
	  
	@Column(name = "h", nullable = false, insertable = true, updatable = false)
	private Integer h;
	  
	@Column(name = "w", nullable = false, insertable = true, updatable = false)
	private Integer w;
	  
	@Column(name = "tp", nullable = false, insertable = true, updatable = true, length = 20)
	private String tp;
	  
	@Column(name = "st", nullable = false, insertable = true, updatable = true, length = 20)
	private String st;
	  
	@Column(name = "min", nullable = false, insertable = true, updatable = false)
	private Integer min;
	  
	@Column(name = "max", nullable = false, insertable = true, updatable = false)
	private Integer max;
	  
	@Column(name = "posicao", nullable = false, insertable = true, updatable = true, length = 10)
	private String posicao;
	  
	@Column(name = "tempo", nullable = false, insertable = true, updatable = true, length = 10)
	private String tempo;
	  
	@Column(name = "agora", nullable = false, insertable = true, updatable = true, length = 15)
	private String agora;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getCx() {
		return cx;
	}

	public void setCx(Integer cx) {
		this.cx = cx;
	}

	public Integer getCy() {
		return cy;
	}

	public void setCy(Integer cy) {
		this.cy = cy;
	}

	public Integer getH() {
		return h;
	}

	public void setH(Integer h) {
		this.h = h;
	}

	public Integer getW() {
		return w;
	}

	public void setW(Integer w) {
		this.w = w;
	}

	public String getTp() {
		return tp;
	}

	public void setTp(String tp) {
		this.tp = tp;
	}

	public String getSt() {
		return st;
	}

	public void setSt(String st) {
		this.st = st;
	}

	public Integer getMin() {
		return min;
	}

	public void setMin(Integer min) {
		this.min = min;
	}

	public Integer getMax() {
		return max;
	}

	public void setMax(Integer max) {
		this.max = max;
	}

	public String getPosicao() {
		return posicao;
	}

	public void setPosicao(String posicao) {
		this.posicao = posicao;
	}

	public String getTempo() {
		return tempo;
	}

	public void setTempo(String tempo) {
		this.tempo = tempo;
	}

	public String getAgora() {
		return agora;
	}

	public void setAgora(String agora) {
		this.agora = agora;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Vagas other = (Vagas) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
}
